<?php

?>

<ul>
	<?php foreach ($this->item->docs as $doc): ?>
	<li>
    	<table cellpadding="0" cellspacing="0" border="0" width="100%">
        	<tr>
            	<td width="70%" align="left">
                    <h3><?php echo $doc->title; ?></h3>
                    <div><?php echo $doc->description; ?></div>    
                    <ul>
                    	<li>Họ tên: <?php echo $doc->full_name; ?></li>
                    	<li>Môn, lĩnh vực: <?php echo $doc->subject_name; ?></li>
                    	<li>Bậc học: <?php echo $doc->level_name; ?></li>
                    </ul>            
                </td>
                <td width="30%">
                    <div class="detail">
                    File: <a href="<?php echo JRoute::_('index.php?option=com_joomdoc_2&task=document.download&path='.$doc->alias.'&Itemid='.JRequest::getVar('Itemid')); ?>">
                    <?php echo $doc->f_path; ?>
                    </a><br />
                    Download: <?php echo $doc->f_hits; ?><br />
                    Upload: <?php echo date('d-m-Y', strtotime($doc->f_upload)); ?><br />
                    </div>
                </td>
            </tr>
        </table>


	</li>
	<?php endforeach; ?>
</ul>